package com.feiyangedu.sample;

public class Tel {
    public  static  boolean  isValidTel(String s){
//        return s.matches("\\d{3,4}\\-\\d{6,8}");
//        必须0开头
        return s.matches("0\\d{2,3}\\-\\d{6,8}");

    }
}
